/*
2	** $Id$
3	** Auxiliary functions for building Lua libraries
4	** See Copyright Notice in lua.h
5	*/
6	
7	
8	#ifndef auxlib_h
9	#define auxlib_h
10	
11	
12	#include "lua.h"
13	
14	
15	struct luaL_reg {
16	  char *name;
17	  lua_CFunction func;
18	};
19	
20	
21	#define luaL_arg_check(cond,numarg,extramsg) if (!(cond)) \
22	                                               luaL_argerror(numarg,extramsg)
23	
24	void luaL_openlib (struct luaL_reg *l, int n);
25	void luaL_argerror (int numarg, char *extramsg);
26	#define luaL_check_string(n)  (luaL_check_lstr((n), NULL))
27	char *luaL_check_lstr (int numArg, long *len);
28	#define luaL_opt_string(n, d) (luaL_opt_lstr((n), (d), NULL))
29	char *luaL_opt_lstr (int numArg, char *def, long *len);
30	double luaL_check_number (int numArg);
double luaL_opt_number (int numArg, double def);
lua_Object luaL_functionarg (int arg);
lua_Object luaL_tablearg (int arg);
lua_Object luaL_nonnullarg (int numArg);
void luaL_verror (char *fmt, ...);
char *luaL_openspace (int size);
void luaL_resetbuffer (void);
void luaL_addchar (int c);
int luaL_getsize (void);
void luaL_addsize (int n);
int luaL_newbuffer (int size);
void luaL_oldbuffer (int old);
char *luaL_buffer (void);
int luaL_findstring (char *name, char *list[]);
	
	
#endif